package com.jindy.module.projectEngineerCost.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.projectEngineerCost.mapper.ProjectEngineerCostMapper;
import com.jindy.module.projectEngineerCost.domain.ProjectEngineerCost;
import com.jindy.module.projectEngineerCost.service.IProjectEngineerCostService;

/**
 * 项目应扣工程费用明细Service业务层处理
 * 
 * @author jindy
 * @date 2023-04-26
 */
@Service
public class ProjectEngineerCostServiceImpl implements IProjectEngineerCostService 
{
    @Autowired
    private ProjectEngineerCostMapper projectEngineerCostMapper;

    /**
     * 查询项目应扣工程费用明细
     * 
     * @param id 项目应扣工程费用明细主键
     * @return 项目应扣工程费用明细
     */
    @Override
    public ProjectEngineerCost selectProjectEngineerCostById(Long id)
    {
        return projectEngineerCostMapper.selectProjectEngineerCostById(id);
    }

    /**
     * 查询项目应扣工程费用明细列表
     * 
     * @param projectEngineerCost 项目应扣工程费用明细
     * @return 项目应扣工程费用明细
     */
    @Override
    public List<ProjectEngineerCost> selectProjectEngineerCostList(ProjectEngineerCost projectEngineerCost)
    {
        return projectEngineerCostMapper.selectProjectEngineerCostList(projectEngineerCost);
    }

    /**
     * 新增项目应扣工程费用明细
     * 
     * @param projectEngineerCost 项目应扣工程费用明细
     * @return 结果
     */
    @Override
    public int insertProjectEngineerCost(ProjectEngineerCost projectEngineerCost)
    {
        return projectEngineerCostMapper.insertProjectEngineerCost(projectEngineerCost);
    }

    /**
     * 修改项目应扣工程费用明细
     * 
     * @param projectEngineerCost 项目应扣工程费用明细
     * @return 结果
     */
    @Override
    public int updateProjectEngineerCost(ProjectEngineerCost projectEngineerCost)
    {
        return projectEngineerCostMapper.updateProjectEngineerCost(projectEngineerCost);
    }

    /**
     * 批量删除项目应扣工程费用明细
     * 
     * @param ids 需要删除的项目应扣工程费用明细主键
     * @return 结果
     */
    @Override
    public int deleteProjectEngineerCostByIds(Long[] ids)
    {
        return projectEngineerCostMapper.deleteProjectEngineerCostByIds(ids);
    }

    /**
     * 删除项目应扣工程费用明细信息
     * 
     * @param id 项目应扣工程费用明细主键
     * @return 结果
     */
    @Override
    public int deleteProjectEngineerCostById(Long id)
    {
        return projectEngineerCostMapper.deleteProjectEngineerCostById(id);
    }
}
